<template>
    <div class="category">
        <category-tab></category-tab>
        <category-content :categoryList="categoryList"></category-content>
    </div>
</template>
<script>

//组件
import categoryTab from './childComps/cartgoryTab.vue' //顶部标题栏
import categoryContent from './childComps/categoryContent.vue' //分类页主要区域
export default {
    name:'Category',
    data() {
         
        return{
            categoryList:[{"title":'现实秒杀',"maitKey":1},{"title":'蔬菜水果',"maitKey":2},{"title":'酒水饮料',"maitKey":3}]
        }
    },
    created() { 
       //我是一个粉刷匠粉刷本领强
    },
    components:{
        categoryTab,
        categoryContent
    }
}
</script>
<style lang="less" scoped>
.category{
    .category-content{
        margin-bottom: 1rem;
    }
}
</style>